package day04;

public class forDemo {
    public static void main(String[] args) {
       /* for (int i = 1; i <= 9; i++) {
            System.out.println(i+"*9="+i*9);
        }
        for (int i = 1; i <= 9; i+=2) {
            System.out.println(i+"*9="+i*9);
        }
        for (int i = 9; i >0; i--) {
            System.out.println(i+"*9="+i*9);
        }
        for (int i=1;i<=5;i++){
            System.out.println("行动是成功的阶梯");
        }
        */

        int num =0;
        for(int i=1;i<=100;i++){
            num=num+i;
        }



       /* for (int i = 1; i <= 10; i++) {
            int sum = 0;
            for (int j = 1; j <= i; j++) {
                sum += j;
                if (j > 1) {
                    System.out.print("+" + j);
                } else {
                    System.out.print(j);
                }
            }
            System.out.println("=" + sum);

        */
        }
    }

